Skip to content

Minimap resize behavior#13

Draft
graycrawford wants to merge 1 commit intomainfrom
cursor/minimap-resize-behavior-626b
Draft

Minimap resize behavior#13
graycrawford wants to merge 1 commit intomainfrom
cursor/minimap-resize-behavior-626b

Conversation

@graycrawford
Copy link
Copy Markdown
Collaborator

Describe what your pull request does. If you can, add GIFs or images showing the before and after of your change.

This PR makes the minimap resizable by dragging its top, right, or top-right edges, mirroring the behavior of the chat panel. The minimap's size is persisted in local storage, and double-clicking any resize handle resets it to its default dimensions. There are no visible resize handles; the cursor changes when hovering over the interactive edges.

Change type

  • bugfix
  • improvement
  • feature
  • api
  • other

Test plan

  1. Open tldraw.
  2. Hover over the top, right, and top-right edges of the minimap. Observe the cursor changing to ns-resize, ew-resize, and nesw-resize respectively.
  3. Drag from these edges to resize the minimap.
  4. Verify that the minimap respects min (100x80) and max (500x400) sizes.
  5. Refresh the page and confirm the minimap retains its last-set size.
  6. Double-click on any resize handle. Verify the minimap resets to its default size (140x96).
  • Unit tests
  • End to end tests

Release notes

  • Added resizable minimap with persisted size and double-click reset.

Slack Thread

Open in Web Open in Cursor 

- Add resize handles (north, east, northeast corner) to minimap
- Store minimap size in localStorage for persistence
- Use same resize interaction pattern as sidebar (pointer capture, idle/pointing/resizing states)
- No visible handles - invisible resize zones at edges
- Double-click on handles to reset to default size
- Respects min/max size constraints (100x80 to 500x400)
@cursor
Copy link
Copy Markdown

cursor Bot commented Mar 12, 2026

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants